<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>辽宁省国资委系统OA协同办公系统</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="images/blue/style_blue.css" rel="stylesheet" type="text/css" />
<LINK href="js/dtreejs/dtree.css" type=text/css rel=StyleSheet>
<SCRIPT src="js/dtreejs/dtree.js" type=text/javascript></SCRIPT>

<script type="text/javascript">
			function gotoList(){
				document.location="v/userAction/list";
			}
			
			function setSelectedRoles(){
				var selids=d.getCheckedNodes();
					var str="";
					for(var n=0; n<selids.length; n++){
						if(selids[n]!=0){
							str+=selids[n]+",";
						}
					}
					document.getElementById("chk").value=str;
			}
		</script>

</head>

<body>
<table width="97%" height="20" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="40" align="left">&nbsp;&nbsp;<img
			src="images/blue/ico_01.gif" width="8" height="9" />您的当前位置：系统管理
		&gt;&gt; 添加用户页面</td>
		<td align="right">&nbsp;</td>
	</tr>
</table>
<table width="97%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="18"><img src="images/blue/title_left01.gif" width="18"
			height="32" /></td>
		<td align="left" valign="top" background="images/blue/title_bgtop.gif">
		<table width="98%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="center" class="Ftitle b">添加用户页面</td>
			</tr>
		</table>
		</td>
		<td width="10"><img src="images/blue/title_left02.gif" width="10"
			height="32" /></td>
	</tr>
	<tr>
		<td background="images/blue/title_bgleft.gif">&nbsp;</td>
		<td height="175" align="left" valign="top" bgcolor="#EFEFF3">
		<table width="98%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="98%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td style="display: none;" width="200" align="right" valign="bottom"><img
					src="images/blue/pic_ures.jpg" width="242" height="201" /></td>
				<td>
				<table width="85%" border="0" align="center" cellpadding="0"
					cellspacing="0" class="dir">
					<s:form action="add" id="addForm" theme="simple" namespace="/v/userAction">
						<input type="hidden" name="user.deleted" value="0"/>
						<!-- 开始 -->
						<tr>
							<td style="color: red;"><s:property value="msg"/></td>
							<td></td>
						</tr>
						<tr>
							<td align="right" bgcolor="#FFFFFF" width="16%">帐号：</td>
							<td bgcolor="#FFFFFF" align="center"><s:textfield
								id="userName" name="user.userName" cssClass="input" size="32"
								cssStyle="float:left;" /></td>
						</tr>
						<tr>
							<td align="right" bgcolor="#FFFFFF" width="16%">密码：</td>
							<td bgcolor="#FFFFFF" align="center">
							<s:password id="password" name="user.password" cssClass="input" size="32" cssStyle="float:left;"></s:password>
							</td>
						</tr>
						<tr>
							<td align="right" bgcolor="#FFFFFF" width="16%">姓名：</td>
							<td width="84%" bgcolor="#FFFFFF"><s:textfield id="name"
								name="user.nickName" cssClass="input" size="32"></s:textfield></td>
						</tr>
						<tr>
							<td align="right" bgcolor="#FFFFFF" width="16%">Email：</td>
							<td bgcolor="#FFFFFF"><s:textfield id="email"
								name="user.email" cssClass="input" size="32" /></td>
						</tr>
						<tr>
							<td align="right" bgcolor="#FFFFFF" width="16%">备注：</td>
							<td bgcolor="#FFFFFF"><s:textfield id="sort"
								name="user.remark" cssClass="input" size="32"/></td>
						</tr>
						<tr>
							<td height="60" colspan="2" align="center" bgcolor="#FFFFFF"><s:submit
								cssClass="btn_add" value="添加" onclick="setSelectedRoles()"></s:submit><input
								type="button" class="btn_back" onclick="gotoList()" value="返回" /></td>
						</tr>
						<input type="hidden" id="chk" name="user.selectRoleIds">
						<!-- 结束 -->
					</s:form>
				</table>
				</td>
				<td>

				<div style="z-index: 2;" id="treeDiv">
				<table width="260" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="5"><img src="images/img/tab_1.gif" width="5" height="5"></td>
						<td background="images/img/tab_11.gif"></td>
						<td width="5"><img src="images/img/tab_2.gif" width="5" height="5"></td>
					</tr>
					<tr>
						<td background="images/img/tab_44.gif"></td>
						<td bgcolor="#EAEAEF">
						<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
							<TBODY>
								<TR>
									<TD vAlign=top align=left>
									<div style="overflow-y: scroll; height: 400px; width: 250px">
									<script type="text/javascript">

															d = new dTree("d");
															d.config.check = true;
															d.config.useCookies=false;
															d.add(0,-1,"角色列表");
															<s:iterator value="roleList" status="i" var="role">
																d.add(<s:property value="#role.roleId"/>,0,'<s:property value="#role.roleTitle"/>','javascript:;','<s:property value="#role.remark"/>');
															</s:iterator>
															
															document.write(d);
														</script></div>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
						</td>
						<td background="images/img/tab_22.gif"></td>
					</tr>
					<tr>
						<td><img src="images/img/tab_4.gif" width="5" height="5"></td>
						<td background="images/img/tab_33.gif"></td>
						<td><img src="images/img/tab_3.gif" width="5" height="5"></td>
					</tr>
				</table>
				</div>


				</td>
			</tr>
		</table>
		<table width="98%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		</td>
		<td background="images/blue/title_bgright.gif">&nbsp;</td>
	</tr>
	<tr>
		<td height="5"><img src="images/blue/title_bottom01.gif"
			width="18" height="5" /></td>
		<td background="images/blue/title_bgbottom.gif"></td>
		<td><img src="images/blue/title_bottom02.gif" width="10"
			height="5" /></td>
	</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
